package com.ssd.controller.operation;

import com.ssd.entity.PointsRecord;
import com.ssd.entity.dto.request.PointsRecordPage;
import com.ssd.service.IPointsRecordService;
import com.ssd.viewmodel.Pager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "运营端-积分记录表控制器")
@RequestMapping("/operation/pointsRecord")
@RestController("operationPointsRecordController")
public class PointsRecordController {
    @Resource
    private IPointsRecordService pointsRecordService;


    /**
     * 查询积分记录列表
     */
    @ApiOperation("积分记录分页列表")
    @GetMapping("/list")
    public Pager<PointsRecord> listRecord(PointsRecordPage pointsRecordPage)
    {
      return  pointsRecordService.listRecord(pointsRecordPage);

    }

}
